<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:65:"/var/www/html/tp5/public/../application/index/view/Login/sms.html";i:1530493523;}*/ ?>


<!DOCTYPE HTML>

<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>登录ShowMovie</title>
    <style type="text/css">
        /* Reset */
        body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td { margin:0; padding:0; }
        table { border-collapse:collapse; border-spacing:0; }
        fieldset,img { border:0; }
        address,caption,cite,code,dfn,em,strong,th,var { font-style:normal; font-weight:normal; }
        ol,ul { list-style:none; }
        caption,th { text-align:left; }
        h1,h2,h3,h4,h5,h6 { font-size:100%; font-weight:normal; }
        q:before,q:after { content:''; }
        abbr,acronym { border:0; }

        /* Font,  Link & Container */
        body { font:12px/1.6 arial,helvetica,sans-serif; }
        a:link { color:#369;text-decoration:none; }
        a:visited { color:#669;text-decoration:none; }
        a:hover { color:#fff;text-decoration:none;background:#039; }
        a:active { color:#fff;text-decoration:none;background:#f93; }
        button { cursor:pointer;line-height:1.2; }
        .mod { width:100%; }
        .hd:after, .bd:after, .ft:after, .mod:after {content:'\0020';display:block;clear:both;height:0; }
        .error-tip { margin-left:10px; }
        .error-tip, .error { color:#fe2617; }

        /* Layout */
        .wrapper { width:950px;margin:0 auto; }
        #header { padding-top:30px; }
        #content { min-height:400px;*height:400px; }
        #header, #content { margin-bottom:40px; }
        #header, #content, #footer { width:100%;overflow:hidden; }
        .article { float:left;width:590px; }
        .aside { float:right;width:310px;color:#666; }
        .aside li { padding-bottom: 1em; }

        .narrow-layout .wrapper { width:90%; }
        .narrow-layout h1 { padding-bottom:10px; }
        .narrow-layout #header { padding-top:10px;margin-bottom:20px; }
        .narrow-layout .article, .narrow-layout .aside { width:auto;float:none;margin-bottom:20px; }
        .narrow-layout .aside li { padding:0;margin-bottom:10px; }
        .narrow-layout .fright { display:block;float:none; }

        /* header */
        .logo { float:left; width:220px;  height:45px; overflow:hidden; line-height:10em; }
        a.logo:link,
        a.logo:visited,
        a.logo:hover,
        a.logo:active { background:transparent url(/static/index/image/logo.png) no-repeat;
            *background-image:url(mhtml:https://accounts.douban.com/login!logo); }
        h1 { color:#494949;display:block;font-size:25px;font-weight:bold;line-height:1.1;margin:0;padding:0 0 30px;word-wrap:break-word; }

        /* form */
        .item { clear:both;margin:0 0 15px;zoom:1; }
        label { display: inline-block; float:left; margin-right: 15px; text-align: right; width: 60px; font-size: 14px; line-height: 30px; vertical-align: baseline }
        .remember { cursor: pointer; font-size: 12px; display: inline; width: auto; text-align: left; float: none; margin: 0; color: #666 }
        .item-captcha input,
        .basic-input { width: 200px; padding: 5px; height: 18px; font-size: 14px;vertical-align:middle; -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; border: 1px solid #c9c9c9 }
        .basic-input.small {width:100px;}
        .item-captcha input:focus,
        .basic-input:focus { border: 1px solid #a9a9a9 }
        .item-captcha input { width:100px; }
        .item-captcha .pl { color:#666; }
        .btn-submit { cursor: pointer;color: #ffffff;background: #3fa156; border: 1px solid #528641; font-size: 14px; font-weight: bold; padding:6px 26px; border-radius: 3px; -moz-border-radius: 3px; -webkit-border-radius: 3px; *width: 100px;*height:30px; }
        .btn-submit:hover { background-color:#4fca6c;border-color:#6aad54; }
        .btn-submit:active { background-color:#3fa156;border-color:#528641; }
        #item-error { padding-left:75px; }
        .item-captcha img { max-width:70%; }
        body { -webkit-text-size-adjust: none;-webkit-touch-callout: none;-webkit-tap-highlight-color: transparent; }
        /* 3rd login*/
        .item-3rd { padding:5px 0;width:200px;margin:20px 0 0 75px;border-top:1px solid #eee;border-bottom:1px solid #eee; }
        .item-3rd label { width:auto;margin:0;font-size:12px;color:#999;line-height:1.5; }
        .item-3rd img { margin:0 5px;vertical-align:middle; }
        .item-3rd a:hover { background-color:transparent; }
        .item-3rd a:active { background-color:transparent; }
        /* sms login */
        .item.extra{float:left;}
        #post-code-button {float:none;padding-left:200px;width:87px;text-align:right;margin:5px 0;}
        #post-code {float:left;width:200px;}
        .item-right {text-align:right;width:287px;}
        .yy:hover{
            background-color: white;
        }
    </style>

<link rel="shortcut icon" href="/static/index/image/favico.ico" type="image/x-icon">
    <style type="text/css">
        #footer { color:#999;padding-top:6px;border-top: 1px dashed #ddd; }
        .fright { float:right; }
        .icp { float:left; }
    </style>

    <script>
        function changeWindowSize(){var e=document.documentElement,n=document.getElementById("header").offsetHeight+document.getElementById("content").offsetHeight+document.getElementById("side-nav").offsetHeight;e.offsetWidth<=500||e.offsetHeight<=n?(changeWindowSize.changed||(window.resizeTo(500,n),changeWindowSize.changed=!0),e.className="narrow-layout",resizeEvent(!0)):(e.className="",resizeEvent(!1))}function resizeEvent(e){return e?void(window.onresize=function(){var e;return function(){e&&window.clearTimeout(e),e=window.setTimeout(changeWindowSize,100)}}()):void(window.onresize=null)}
        function set_cookie(e,t,n,o){var i,r,c=new Date;c.setTime(c.getTime()+24*(t||30)*60*60*1e3),i="; expires="+c.toGMTString();for(r in e)document.cookie=r+"="+e[r]+i+"; domain="+(n||"douban.com")+"; path="+(o||"/")}function get_cookie(e){var t,n,o=e+"=",i=document.cookie.split(";");for(t=0;t<i.length;t++){for(n=i[t];" "==n.charAt(0);)n=n.substring(1,n.length);if(0===n.indexOf(o))return n.substring(o.length,n.length).replace(/\"/g,"")}return null}
    </script>
</head>
<body onload="changeWindowSize()">
<div class="wrapper">
    <div id="header">
        <a href="<?php echo url('index/Index/index'); ?>" class="logo">登录ShowMovie</a>
    </div>

    <div id="content">
        <h1>登录ShowMovie</h1>
        <div class="article">

    <!-- <link href="/static/admin/assets/libs/bootstrap/css/bootstrap.min.css" rel="stylesheet"/> -->

                <div class="item-right">
                    <a href="<?php echo url('index/login/index'); ?>" style="text-decoration: none;color:#46BC99;" class="yy">账号邮箱登录</a>
                </div>
                <div class="item">
                    <label>帐号</label>
                    <input id="pho" name="phone" type="text" class="basic-input"
                           maxlength="60" placeholder="手机号" tabindex="1"/>
                     <soan class="yanzheng" ></span>
                </div>
                <div class="item captcha-item">
                    <label>验证码</label>
                    <input id="text" name="form" type="text" class="basic-input small" maxlength="10" tabindex="2"/>
                    <button class="phone em" style=" background-color: #3FA156;color: #fff;padding: 8px 14px;border: 0;border-radius: 5px;">获取验证码</button>

                    
                </div>
                <!-- 6L2D6I_Gspw | 211.161.196.173 -->
                <div class="item">
                    <label>&nbsp;</label>
                    <p class="remember">
                        <input type="checkbox" id="remember" name="remember" tabindex="4"/>
                        <label for="remember" class="remember">下次自动登录</label>
                       
                    </p>
                </div>
                <div class="item">
                    <label>&nbsp;</label>
                    <button type="submit"  name="login" class="btn-submit ph" tabindex="5"/>登录</button>
                </div>
    <script type="text/javascript" src="/static/js/jquery.min.js"></script>
    <script type="text/javascript" src="/static/js/bootstrap.min.js"></script>
    <script type="text/javascript" src="/static/js/toastr.min.js"></script>
    <link href="/static/admin/css/toastr.min.css" rel="stylesheet"/>
<script>
        $(function(){
            $('.phone').click(function(){
            	if ($('#pho').val()) {
            	var second = 60;
				time();
				var timer = setInterval(time,1000); 
					function time(){
					        	// var jj = document.getElementById('em');
					            if (second == 0) { 
							    	$('.em')[0]['disabled'] = false;
							        //obj.removeattr("disabled"); 
							        $('.em').html("获取验证码");
							        return;
							    } else { 
							    	$('.em')[0]['disabled'] = true;
							        // $('.em').attr("disable",false); 
							        $('.em').html("重新发送(" + second + ")");
							        second--; 
							    } 
					        }
					    }else{
					    	$('.yanzheng').html("请填写手机号");
					    	$('.yanzheng').css("color",'red');
					    }
                $phone = document.getElementById('pho').value;
                $.ajax({
                    type: 'post',
                    url: '<?php echo url("index/Send/sendmobilemsg"); ?>',
                    data: 'phone='+$phone,
                    dataType: 'json',
                    success: function (data) {
                        console.log('成功');
                    }
                });
                return false;

            });
            $('.ph').click(function () {

                postdata();
            });

            function postdata(){
                //提交数据函数
                toastr.options = {
                    closeButton: true,
                    debug: false,
                    progressBar: true,
                    positionClass: "toast-top-right",
                    onclick: null,
                    showDuration: "3000",
                    hideDuration: "1000",
                    timeOut: "3000",
                    extendedTimeOut: "1000",
                    showEasing: "swing",
                    hideEasing: "linear",
                    showMethod: "fadeIn",
                    hideMethod: "fadeOut"
                };
                // console.log(123);
                $.ajax({

                    //调用jquery的ajax方法
                    type: "POST",
                    //设置ajax方法提交数据的形式
                    url: "/index/Login/smslogin",
                    //把数据提交到ok.php
                    data: {
                        phone : $("#pho").val(),
                        form : $("#text").val(),
                        remember : $("#remember").val()
                    },
                    success: function(data){
                        if (data) {
                            toastr.success('登录成功,三秒后跳转到首页');
                            setInterval(function(){
                                location.href='http://47.96.69.12/index/index/index';
                            }, 3000);
                        }else{
                            toastr.error('请检查您的手机号和验证码！');
                        }
                    },
                    error: function () {
                        toastr.error('AJAX操作失败');
                    }
                });
            }
        });
</script>


        </div>
        <ul id="side-nav" class="aside">
            <li>&gt;&nbsp;还没有ShowMovie帐号？<a rel="nofollow" href="<?php echo url('index/Register/index'); ?>" style="text-decoration: none;color: #46BC99;" class="yy">立即注册</a></li>
        </ul>
    </div>
    <div id="footer">


<span id="icp" class="fleft gray-link">
    &copy; 2005－2018 ShowMovie.com, all rights reserved
</span>

<span class="fright">
    <span>关于ShowMovie</span>
    · <span>在ShowMovie工作</span>
    · <span>联系我们</span>
    · <span>免责声明</span>

    · <span>帮助中心</span>
    · <span>移动应用</span>
    · <span>ShowMovie 广告</span>
</span>



        <script type="text/javascript">
            function report_ps(r){
                $.get("https://www.douban.com/accounts/misc/ps", {ps:r});
                set_cookie({ps:'y'});
            }
        </script>

        <img src="https://www.douban.com/pics/blank.gif" style="display:none;" onload="report_ps(true)" onerror="report_ps(false)" />



    </div>

    <script>
    </script>

    <!-- COLLECTED JS -->


</div>
</body>
</html>
